<script setup>
import { Edit, RefreshRight } from '@element-plus/icons-vue';
import { ref } from 'vue';

const input = ref('')
const indate1=ref('')
const indate2=ref('')
//测试数据
const data=({
  "id":1,
  "test1":"2019-04-01 13:23:15",
  "test2":"E1006",
  "test3":"待维修"
})
</script>
<template>
  <el-row style="background-color:white;margin:20px 10px 0 10px">
    <h4>设备维修任务列表</h4>
  </el-row>
  <el-row style="background-color:white;margin:0 10px 0 10px">
    <el-col :span="2" style="margin:10px 0 0 10px">
      <el-button :icon="RefreshRight">
        刷新
      </el-button>
    </el-col>
    <el-col :span="5" style="margin-top:10px">
      <el-date-picker
        v-model="indate1"
        type="date"
        placeholder="维修日期开始"
      />
    </el-col>
    <el-col :span="5" style="margin-top:10px">
      <el-date-picker
        v-model="indate2"
        type="date"
        placeholder="维修日期结束"
      />
    </el-col>
    <el-col :span="9" style="margin-top:10px;margin-left: 20px;">
      <el-input v-model="input" placeholder="请输入设备名称" />
    </el-col>
    <el-col :span="2" style="margin-top:10px">
      <el-button type="success">搜索</el-button>
    </el-col>
  </el-row>
  <el-row style="background-color:white;margin:0 10px 0 10px">
    <el-col :span="24" style="margin-top:15px">
      <!--:data为测试数据，可对应数据库修改  stripe斑马纹效果 border带边框 -->
      <el-table :data="data" stripe border style="width:100%">
        <!-- 定义列表属性 prop值可对于数据库字段名修改-->
        <el-table-column label="序号" align="center" prop="id" width="60"></el-table-column>
        <el-table-column label="任务创建时间" align="center" prop="test1" width="120" />
        <el-table-column label="维修设备" align="center" prop="test2" width="170" />
        <el-table-column label="维修状态" align="center" prop="test3" width="140" />
        <el-table-column label="操作" align="center">
          <template #default="scope">
            <el-button type="primary" :icon="Edit" size="small">编辑</el-button>
          </template>
        </el-table-column>
      </el-table>
    </el-col>
  </el-row>
</template>
<style scoped>

</style>